package com.douqu.game.auth.web.request;

import com.bean.core.util.TimeUtils;

import java.util.Date;

/**
 * @Author: wangzhenfei
 * @Description:
 * @Date: 2017-11-13 15:00
 */
public class QueryTotalRechargeReqDto {
    private String objectIndex;
    private Date startTime;
    private Date endTime;


    public String getObjectIndex() {
        return objectIndex == null ? "" : objectIndex;
    }

    public void setObjectIndex(String objectIndex) {
        this.objectIndex = objectIndex;
    }

    public Date getStartTime() {
        return startTime == null ? new Date() : startTime;
    }

    public String getStartTimeString(){
        return TimeUtils.getFormatTime(getStartTime().getTime(), TimeUtils.YYYY_MM_DD_HH_MM_SS);
    }

    public String getEndTimeString(){
        return TimeUtils.getFormatTime(getEndTime().getTime(), TimeUtils.YYYY_MM_DD_HH_MM_SS);
    }


    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime == null ? new Date() : endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "QueryTotalRechargeReqDto{" +
                "objectIndex='" + objectIndex + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
